<%@ page language="java" isELIgnored="false" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>新增/修改用户</title>
</head>
<body>
<form action="/resume/addAndUpdate" method="post">
    <table>
        <c:choose>
            <c:when test="${resume != null}">
                <tr>
                    <td>id:</td>
                    <td><input type="text" name="id" value="${resume.id}"></td>
                </tr>
                <tr>
                    <td>name:</td>
                    <td><input type="text" name="name" value="${resume.name}"></td>
                </tr>
                <tr>
                    <td>address:</td>
                    <td><input type="text" name="address" value="${resume.address}"></td>
                </tr>
                <tr>
                    <td>phone:</td>
                    <td><input type="text" name="phone" value="${resume.phone}"></td>
                </tr>
            </c:when>
            <c:otherwise>
                <tr>
                    <td>name:</td>
                    <td><input type="text" name="name" value=""></td>
                </tr>
                <tr>
                    <td>address:</td>
                    <td><input type="text" name="address" value=""></td>
                </tr>
                <tr>
                    <td>phone:</td>
                    <td><input type="text" name="phone" value=""></td>
                </tr>
            </c:otherwise>
        </c:choose>
        <tr>
            <td><input type="submit" value="提交" name="submit"></td>
        </tr>
    </table>
</form>
</table>
</body>
</html>
